package com.block.datapush.form.item.util;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;

public class DianDaiUtil {


    public static Integer getLoanAmount(String loanAmount){
        if (StrUtil.equals(BaseTypeInfoEnum.LoanAmount.la003.getValue(),loanAmount)){
            return 1201;
        }
        return 1201;
    }

    public static Integer getZhiMa(String zhima){
        if (StrUtil.equals(BaseTypeInfoEnum.ZhimaScore.zm005.getValue(),zhima)){
            return 1102;
        }else if (StrUtil.equals(BaseTypeInfoEnum.ZhimaScore.zm004.getValue(),zhima)){
            return 1101;
        }
        return 1100;
    }

    public static Integer getHuaBei(String huabei){
        if (StrUtil.equals(BaseTypeInfoEnum.Huabei.hb002.getValue(), huabei)){
            return 2;
        }
        return 3;
    }

    public static Integer getBaiTiao(String baitiao){
        if (StrUtil.equals(BaseTypeInfoEnum.Baitiao.bt002.getValue(), baitiao)){
            return 2;
        }
        return 3;
    }



}
